<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商城</title>
    <script src="bootstrap/js/jquery.min.js"></script>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css"/>
    <script src="bootstrap/js/bootstrap.js"></script>
    <style>
        .makepos{
            padding-top:20px;
        }
        .list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{
            background-color: #5cb85c;
            border-color: #4cae4c;
        }
        .carousel-inner>.item>img,carousel-inner>.item>a>img{
            line-height:1;/*不用加px吗？*/
            height:300px;
        }
        .mypic{
            width:100%;
            height:150px;
        }
        .breadcrumb{
            background-color: white;
        }
        hr{
            border-width:2px;
            border-color: green;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapse" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">欢迎来到天天生鲜</a>
            </div>
            <div class="collapse navbar-collapse" id ="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">登录</a></li>
                    <li><a href="#">注册</a></li>
                    <li><a href="#">用户中心</a></li>
                    <li><a href="#">购物车</a></li>
                    <li><a href="#">订单</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <header class="container">
        <div class="col-xs-12  col-sm-3">
            <img src="images/logo.png">
        </div>
        <div class="col-xs-12 col-sm-6 makepos">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="搜索商品">
                <span class="input-group-btn">
                    <button class="btn btn-success" type="button">搜索</button>
                </span>
            </div>
        </div>
        <div class="col-xs-12 col-sm-3">
            <button class="btn btn-success pull-right" type="button">
                <img src="images/cart.png">我的购物车<span class="badge">4</span>
            </button>
        </div>
    </header>
    <menu class="container">
        <div class="col-xs-12 col-sm-2">
            <ul class ="list-group" id="shopping">
                <li class="list-group-item active">全部商品分类</li>
                <li class="list-group-item"><a href="#fruit" data-toggle="tab"><img src="images/fruit.png">新鲜水果</a></li>
                <li class="list-group-item"><a href="#haixian"><img src="images/haixian.png">海鲜水产</a></li>
                <li class="list-group-item"><a href="#pig"><img src="images/pig.png">猪牛羊肉</a></li>
                <li class="list-group-item"><a href="#egg"><img src="images/egg.png">禽类蛋品</a></li>
                <li class="list-group-item"><a href="#vegetable"><img src="images/vegetable.png">新鲜蔬菜</a></li>
                <li class="list-group-item"><a href="#frozen"><img src="images/frozen.png">速冻食品</a></li>
            </ul>
        </div>
        <div class="col-xs-12 col-sm-10">
            <ul class="nav nav-tabs">
                <li role="presentation" class="active"><a href="#">首页</a></li>
                <li role="presentation"><a href="#">手机生鲜</a></li>
                <li role="presentation"><a href="#">抽奖</a></li>
            </ul>
            <div class="col-xs-12 col-sm-9">
                <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="3"></li>
                    </ol>
                    <div class="carousel-inner" role="listbox">
                        <div class="item active">
                            <img src="images/slide.jpg">
                        </div>
                        <div class="item">
                            <img src="images/slide02.jpg" >
                        </div>
                        <div class="item">
                            <img src="images/slide03.jpg" >
                        </div>
                        <div class="item">
                            <img src="images/slide04.jpg" >
                        </div>
                        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                            <span class="sr-only">Previous</span>
                        </a>
                        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                            <span class="sr-only">Next</span>
                        </a>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-3">
                    <img src="images/adv01.jpg" class="mypic">
                    <img src="images/adv02.jpg" class="mypic">
                </div>
            </div>
        </div>
    </menu>
    <section class="container" >
        <div class="panel panel-success">
            <div class="panel-heading">新鲜水果
                <div class="pull-right">查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner01.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">草霉</p><br/>
                        <img src="images/goods/goods003.jpg" class="img-responsive">
                        <p class="text-center">¥30.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">奇异果</p><br/>
                        <img src="images/goods/goods012.jpg">
                        <p class="text-center">¥25.80元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">柠檬</p><br/>
                        <img src="images/goods/goods001.jpg">
                        <p class="text-center">¥3.90元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">奇异果</p><br/>
                        <img src="images/goods/goods012.jpg">
                        <p class="text-center">¥25.80元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">桃</p><br/>
                        <img src="images/goods/goods005.jpg">
                        <p class="text-center">¥25.80元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <section class="container">
        <div class="panel panel-success">
            <div class="panel-heading">海鲜水产
                <div class="pull-right">查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner02.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">青岛野生海捕大青虾</p><br/>
                        <img src="images/goods/goods018.jpg" class="img-responsive">
                        <p class="text-center">¥48.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">扇贝</p><br/>
                        <img src="images/goods/goods019.jpg" class="img-responsive">
                        <p class="text-center">¥46.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">冷冻秋刀鱼</p><br/>
                        <img src="images/goods/goods020.jpg">
                        <p class="text-center">¥19.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">基围虾</p><br/>
                        <img src="images/goods/goods021.jpg">
                        <p class="text-center">¥25.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">洞庭湖帝王蟹</p><br/>
                        <img src="images/goods/goods022.jpg">
                        <p class="text-center">¥52.80元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <section class="container">
        <div class="panel panel-success">
            <div class="panel-heading">
                猪牛羊肉
                <div class="pull-right">
                    查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner03.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">猪脚</p><br/>
                        <img src="images/goods/goods023.jpg" class="img-responsive">
                        <p class="text-center">¥37.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">鸡肉</p><br/>
                        <img src="images/goods/goods024.jpg" class="img-responsive">
                        <p class="text-center">¥25.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">猪肉</p><br/>
                        <img src="images/goods/goods025.jpg">
                        <p class="text-center">¥37.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">牛肉</p><br/>
                        <img src="images/goods/goods026.jpg">
                        <p class="text-center">¥52.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">新西兰羔羊肉</p><br/>
                        <img src="images/goods/goods027.jpg">
                        <p class="text-center">¥79.00元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <section class="container">
        <div class="panel panel-success">
            <div class="panel-heading">
                禽类蛋品
                <div class="pull-right">
                    查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner04.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">柴鸡蛋</p><br/>
                        <img src="images/goods/goods028.jpg" class="img-responsive">
                        <p class="text-center">¥18.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">鹌鹑蛋</p><br/>
                        <img src="images/goods/goods029.jpg" class="img-responsive">
                        <p class="text-center">¥13.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">咸鸭蛋</p><br/>
                        <img src="images/goods/goods030.jpg">
                        <p class="text-center">¥30.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">毛鸡蛋</p><br/>
                        <img src="images/goods/goods031.jpg">
                        <p class="text-center">¥20.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">鹅蛋</p><br/>
                        <img src="images/goods/goods032.jpg">
                        <p class="text-center">¥18.50元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <section class="container" >
        <div class="panel panel-success">
            <div class="panel-heading">
                新鲜蔬菜
                <div class="pull-right">
                    查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner05.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">黄瓜</p><br/>
                        <img src="images/goods/goods033.jpg" class="img-responsive">
                        <p class="text-center">¥6.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">西红柿</p><br/>
                        <img src="images/goods/goods034.jpg" class="img-responsive">
                        <p class="text-center">¥5.50元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">茄子</p><br/>
                        <img src="images/goods/goods035.jpg">
                        <p class="text-center">¥8.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">扁豆</p><br/>
                        <img src="images/goods/goods036.jpg">
                        <p class="text-center">¥15.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">蒜台</p><br/>
                        <img src="images/goods/goods037.jpg">
                        <p class="text-center">¥25.00元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <section class="container">
        <div class="panel panel-success">
            <div class="panel-heading">
                速冻食品
                <div class="pull-right">
                    查看更多...
                </div>
            </div>
            <div class="panel-body">
                <div class="col-xs-12 col-sm-2">
                    <img src="images/banner06.jpg"  class="img-responsive">
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">冰激凌</p><br/>
                        <img src="images/goods/goods038.jpg" class="img-responsive">
                        <p class="text-center">¥8.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">雪糕</p><br/>
                        <img src="images/goods/goods039.jpg" class="img-responsive">
                        <p class="text-center">¥2.50元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">速冻水饺</p><br/>
                        <img src="images/goods/goods040.jpg">
                        <p class="text-center">¥13.50元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">速冻汤圆</p><br/>
                        <img src="images/goods/goods041.jpg">
                        <p class="text-center">15.00元</p>
                    </a>
                </div>
                <div class="col-xs-12 col-sm-2">
                    <a href="#" class="thumbnail">
                        <p class="text-center">老冰棍</p><br/>
                        <img src="images/goods/goods042.jpg">
                        <p class="text-center">¥0.50元</p>
                    </a>
                </div>
            </div>
        </div>
    </section>
    <hr>
    <footer>
        <div class="col-xs-12 col-sm-6 col-sm-offset-3">
            <ol class="breadcrumb container">
                <li>关于我们</li>
                <li>联系我们</li>
                <li class="active">招聘人才</li>
                <li>友情链接</li>
            </ol>
            <p class="container">
                CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved
            </p>
            <p class="container">
               电话：010-****888 京ICP备*******8号
            </p>
        </div>
    </footer>
    <script>
        $(function(){
            $("#tab1").parent().hide();
            $("#shopping>li").hover(function(){
                $("#shopping>li").removeClass("active");
                $("#tab1>div").removeClass("in active");
                $(this).addClass("active");
                var href=$(this).children().attr("href");
                $(href).addClass("in active");
                var pos=$(this).offset().left+$(this).width()+32;
                var heights=$(this).parent().height();
                $(href).parent().parent().show();
                $(href).parent().parent().css({"left":pos+"px","padding-top":"50px","height":heights});
            },function(){
            });
            $("#tab1>div").hover(function(){
            },function(){
                $("#shopping>li").removeClass("active");
                $(this).removeClass("in active");
                $(this).parent().parent().hide()
            })
        })
    </script>
</body>
</html>